<template>
  <el-tabs type="border-card" v-model="tabSelected" class="tab-box">
    <el-tab-pane label="添加问题">
      <TypeList />
    </el-tab-pane>
    <el-tab-pane label="大纲">
      <QuestionCatalog />
    </el-tab-pane>
    <el-tab-pane label="逻辑">
      <LogicEditPage />
    </el-tab-pane>
  </el-tabs>
</template>
<script setup lang="ts">
import { ref } from 'vue'

import TypeList from './components/TypeList.vue'
import QuestionCatalog from './components/QuestionCatalog.vue'
import LogicEditPage from '../../pages/edit/LogicEditPage.vue'

const tabSelected = ref<string>('0')
</script>
<style lang="scss" scoped>
.tab-box {
  width: 300px;
  height: 100%;
  box-shadow: none;
  border: none;
  overflow-y: auto;
  :deep(.el-tabs__nav) {
    width: 100%;
  }
  :deep(.el-tabs__item) {
    width: 50%;
    text-align: center;
  }
}
</style>
